<?php
if( isset( $_GET['createQrcode'] ) && $_GET['createQrcode'] == 1 ){
    include 'example/phpqrcode/phpqrcode.php';
    $url = $_GET['code'] . ',' . $_GET['VipId'] . ',' . $_GET['money'] . ',' . $_GET['phone'] . ',' . time();
    $sign = md5( $url );
    $url .= ','.$sign;
    QRcode::png($url,false,QR_ECLEVEL_M);exit;
}
include 'lanewechat.php';
include 'WeiXinPay.php';
$userinfo = \LaneWeChat\Core\Common::getCurrentUserInfo('qrcode.php');

$info = \LaneWeChat\Core\Common::getCurrentCardInfo( $userinfo['openid'] );

?>
<!DOCTYPE html>
<html>
<head>
    <title>鹏企科技</title>
    <meta name="keywords" content="鹏企科技">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1,initial-scale=1.0, maximum-scale=1.0,user-scalable=0">
    <meta name="renderer" content="webkit">
    <link rel=Stylesheet type="text/css" href="css/common.css">
    <link rel=Stylesheet type="text/css" href="css/style.css">
</head>

<body>


<div class="container">

    <div class="header" onclick="history.go(-1)"><img src="images/arrow.png">扫码消费(线下领卡)</div>

    <div class="container2 scan">
        <p><img src="qrcode.php?createQrcode=1&code=<?=$info['Code']?>&VipId=<?=$info['VIPID']?>&money=<?=$info['SumCash']?>&phone=<?=$info['Phone']?>"></p>
        <div><a href="profile.php">查看个人信息</a></div>
    </div>


    <div class="footer"><img src="images/logo.png">本服务由上海鹏企自动化科技有限公司提供</div>

</div>

</body>
</html>